﻿@model IEnumerable<Irandeb4.Models.Company>

@{
    ViewBag.Title = "SeeSuppliers";
}

<h2>Proveedores de </h2>

@using (Html.BeginForm())
{
    <center>
        <div>
            <input type="text" id="searchFieldID" name="toSearch"/>
            <input type="submit" value="buscar" />
        </div>
        
    </center>
    
    <br/>
    <div>
        <a href="Search">ver todos</a>
    </div>
    
    
    
    <table class="table2">
        <tr>
            <th>
                Nit
            </th>
            <th>
                Nombre
            </th>
            <th>
                Email
            </th>
            <th>
                Telefono
            </th>
            <th>
                Direccion
            </th>
            <th>
                Acciones
            </th>
        </tr>

    @foreach (var item in Model)
    {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.Nit)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Email)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Phone)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Address)
                </td>
                <td align="center">
                    @Html.ActionLink("Quitar de la lista", "", )
                    
                </td>
            </tr>
    }

    </table>
}
